<?php session_start(); 
if(!isset($_SESSION["login"]) || $_SESSION["login"] == 0)
{
	
$_SESSION["hisURL"] = curPageURL();
 header("Location: login.php");
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/templateadmin.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Place your description here" />
<meta name="keywords" content="put, your, keyword, here" />
<meta name="author" content="Templates.com - website templates provider" />
<link href="css/styleAdmin.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Banner Manager</title>
<script src="../js/jquery.min.js" language="javascript"></script>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script src="../js/jquery.min.js" language="javascript"></script>
<script type="text/javascript">
$(document).ready(function() {

    $("ul#topnav li").hover(function() { //sự kiện khi đưa chuột vào menu
        //Add background color and image on hovered list item
        $(this).find("span").show(); //hiễn thị menu cấp 2
    } , function() { //on hover out...
        $(this).css({ 'background' : 'none'}); 
        $(this).find("span").hide(); //ẩn menu cấp 2
    });

});
</script>  
<script>
function checkgo()
{
	if(isNaN(document.gopage.go.value))
	return false;
}

</script>
<?php
function curPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}
 ?>
</head>

<body id="page1">
<div id="loadingpage" style="		
	text-align:center;
	position:fixed;
  z-index: 100;  
  top:49%; 
  left:49%;
  background-color:#A0A0A4;
  opacity:0.7;
  display:none;
  " >
<img src="../img/loadingpage.gif" width="55px" height="55px"  />
</div>

<div class="tail-top">
	<div class="tail-bottom">
		<div class="body-bg">
			<!-- HEADER -->
			<div id="header">
				<div class="extra"><img src="images/header-img.png" alt="" /></div>
				<div class="row-1">
					
					<div class="fright">
                    <?php
                    	if(isset($_SESSION["login"]) && $_SESSION["login"] == 1)
                        {
                            echo ' <span>Hi! '.$_SESSION["user"]. '. <a href="process/processLogin.php" style="text-decoration:none;" >log out</a></span>';
                       
                        }
                        
                        
                        ?>
                    </div>
				</div>
				<div class="row-2">
					<ul id="topnav">
						<li class="m1"><a id="m1" href="home.php">Game Manager</a></li>
						<li class="m2"><a id="m2" href="categories.php">Categories Manager</a></li>
						<li class="m3" style="height:110px;" ><a id="m3" href="upgame.php">Upload Game</a><span style="display:none;"><a style="background:none; padding:0;"   href="customupgame.php">Custom Game</a></span></li>
						<li class="m4"><a id="m4" href="bills.php">Bills Manager</a></li>
						<li class="m5"><a id="m5" href="banner.php">Banner Manager</a></li>
                        <li class="m6" ><a id="m6" href="request.php">Request Manager</a></li>
						<li class="m7" style="display:none;"><a id="m6" href="sitemap.html">Sitemap</a></li>
					</ul>
				</div>
				
			</div>
			<!-- CONTENT -->
			<div id="content">
				<div class="tail-right">
					<div class="wrapper">
						<div class="col-1"><!-- InstanceBeginEditable name="col1" -->
						<table width="100%" style="margin-top:10px;"><tr><td align="center">
                        <div style="margin-bottom:10px;"><span style="font-size:15px; color:
                        #A0A0A4;">Upload image banner(size 960x300)</span></div>
						<form action="process/upload_file.php" method="post" enctype="multipart/form-data">
                        <strong>image 1: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/1.jpg" width="20%" height="20%" /><br />
                        <strong>image 2: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/2.jpg" width="20%" height="20%" /><br />
                        <strong>image 3: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/3.jpg" width="20%" height="20%" /><br />
                     	<strong>image 4: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/4.jpg" width="20%" height="20%" /><br />
                      	<strong>image 5: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/5.jpg" width="20%" height="20%" /><br />
                       	<strong>image 6: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/6.jpg" width="20%" height="20%" /><br />
                      	<strong>image 7: </strong><input type="file" name="file[]" id="file[]" /> <img src="../data1/tooltips/7.jpg" width="20%" height="20%" />
                        <br />
                        <input type="submit" name="submit" value="Submit" />
                        </form>
                        </td></tr>
                        <tr><td></td></tr>
                        </table>
 <script>
 jQuery(document).ready(function($) {
	 $("#m5").attr("class","active");
	 $("#loadingpage").fadeOut(1000);
 });
 </script>
						<!-- InstanceEndEditable -->
							
				      </div>
					</div>
				</div>
			</div>
			<!-- FOOTER -->
			<div id="footer">
				<div class="indent">
					<div class="fleft">
<div class="vlinks"><a href="http://www.webdesign.org">Web design</a> by <a title="Free Templates Online" href="http://www.freetemplatesonline.com">Free Templates</a> Online</div></div>
					<div class="fright">Copyright - HTT</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript"> 
showLoadingPage();
function showLoadingPage()
{
	$("#loadingpage").show();
} 
Cufon.now(); </script>
</body>
<!-- InstanceEnd --></html>
